package main

import (
	"iot-base/devc/common/loader"
	"sync"
	"time"
)

const (
	// Time allowed to read the next pong message from the peer.
	pongWait = 120 * time.Second
	pingWait = 120 * time.Second
	// Maximum message size allowed from peer.
	maxMessageSize = 512
)

//var Hub *hub
//var RegistedDoor map[string]string //存储已注册设备

func main() {
	initRegister()
	loader.Init("door")
	loader.SubCtrlHandler(gTask)
	wg := sync.WaitGroup{}
	wg.Add(1)
	wg.Wait()
}
